import { post, get, fileDownload } from '@/utils/request/index';
import ApiUrl from '@/api/url';

//  对账规则列表查询
export async function getRuleList(parms: any) {
  const rtn = ((await post(ApiUrl.getRuleList, parms)) as any).data;
  return rtn.data;
}

// 对账规则新增/编辑
export async function ruleAddOrEdit(parms: any) {
  const rtn = ((await post(ApiUrl.ruleAddOrEdit, parms)) as any).data;
  return rtn;
}

// 对账规则失效
export async function ruleInvalid(parms: any) {
  const rtn = ((await post(ApiUrl.ruleInvalid, parms)) as any).data;
  return rtn;
}

// 对账规则失效
export async function exportRuleList(parms: any) {
  const rtn = ((await fileDownload(ApiUrl.exportRuleList, parms)) as any).data;
  return rtn;
}
